[Bug fortran/65825] Cannot change attributes intrinsic

2018-02-11 Thread rofirrim at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65825

Roger Ferrer Ibanez  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |INVALID

--- Comment #3 from Roger Ferrer Ibanez  ---
I should have read the standard more carefully. Fortran 2003 draft §11.2.1 says
(similarly in Fortran 95 except for the two new attributes)

  "The local identifier of an entity made accessible by a USE statement shall
not appear in any other nonexecutable statement that would cause any attribute
(5.1.2) of the entity to be specified in the scoping unit that contains the USE
statement, except that it may appear in a PUBLIC or PRIVATE statement in the
scoping unit of a module and it may be given the ASYNCHRONOUS or VOLATILE
attribute."

Also, earlier in §11.2 it says

  "If an intrinsic procedure is declared in the scoping unit of a module, it
shall explicitly be given the INTRINSIC attribute in that scoping unit or be
used as an intrinsic procedure in that scoping unit."

Because of this, I believe gfortran is doing nothing wrong here. I'm closing
this as invalid.

Sorry for the fuss.

Kind regards,
Roger

[Bug fortran/54223] Statement function statement with dummy arguments that are also OPTIONAL may crash in wrong calls

2018-02-11 Thread rofirrim at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54223

--- Comment #5 from Roger Ferrer Ibanez  ---
(In reply to kargl from comment #3)
> I have a patch.  Sorry, it took so long to fix.

No worries, thanks for fixing it!

[Bug other/85207] New: Documentation says that -Qn is the default but looks like -Qy is the default

2018-04-04 Thread rofirrim at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85207

Bug ID: 85207
   Summary: Documentation says that -Qn is the default but looks
like -Qy is the default
   Product: gcc
   Version: unknown
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: other
  Assignee: unassigned at gcc dot gnu.org
  Reporter: rofirrim at gmail dot com
  Target Milestone: ---

Hi all,

  https://gcc.gnu.org/onlinedocs/gcc/System-V-Options.html

reads

"
   -Qy
   Identify the versions of each tool used by the compiler, in a .ident
assembler directive in the output.

   -Qn
   Refrain from adding .ident directives to the output file (this is the
default).

"


but in all the tests I've done gcc always emits .ident which seems to suggest
that the default is actually -Qy, not -Qn as the text seems to suggest.

Perhaps this is target-dependent but even in that case the documentation may
need updating to reflect that.

Kind regards,
Roger